<template>
	<view class="main">
		<view class="status">
			<view class="status_">
				全部
			</view>
			<view class="status_">
				已付款
			</view>
			<view class="status_">
				待付款
			</view>
		</view>
		<view class="container" v-for="shop in shops">
			<view class="image">
				<!-- <image></image> -->
			</view>
			<view class="information">
				<view class="shopName">
					{{shop.shop.shopName}}
				</view>
				<view class="price">
					{{shop.shop.shopPrice}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { gettrollyList } from '../../api/trolly/trolly';
	export default {
		data() {
			return {
				shops:[]
			}
		},
		methods: {
			
		},
		onLoad(){
			gettrollyList().then(res=>{
				this.shops=res.rows;
				console.log(this.shops);
			})
		}
	}
</script>

<style>
	.main{
		width: 100%;
		height: 1500rpx;
		background: linear-gradient(to bottom, rgb(255, 0, 0) 30%, rgb(246, 249, 249) 70%);
		display: flex;
		align-items: center;
		flex-direction: column;
	}
	.container{
		width: 90%;
		background-color: white;
		border-radius: 25rpx;
		height: 250rpx;
		margin-top: 20rpx;
	}
	.status{
		width: 90%;
		background-color: white;
		border-radius: 25rpx;
		height: 50rpx;
		margin-top: 20rpx;
		display: flex;
		justify-content: center;
	}
	.status_{
		margin-top: 5rpx;
		width: 33%;
		margin-left: 55rpx;
	}
</style>
